package test.demo.Error;

import com.sun.xml.internal.ws.developer.Serialization;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.http.HttpStatus;


@Getter
@AllArgsConstructor
@Serialization
public enum ErrorCode  {



    RESOURCE_NOT_FOUNT(1001, HttpStatus.NOT_FOUND.value(),"未找到该资源"),
    PARAMS_FORMAT_INVALID(1002,HttpStatus.BAD_REQUEST.value(), "请求参数格式错误");


    private final int code;

    private final int httpStatus;

    private final String message;



}